package design.graduation.novelwebsite.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: 洪少尉
 * @Date: 2020/3/24 09:27
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ResultJson {
	private Integer code;
	private String msg;
	private Long count;
	private Object data;

	public ResultJson(Long count, Object data){
		this.count = count;
		this.data = data;
	}
	public ResultJson(Integer code, String msg, Object data){
		this.code = code;
		this.msg = msg;
		this.data = data;
	}
}
